﻿#ifndef KEYBOARDLISTENTHREAD_H
#define KEYBOARDLISTENTHREAD_H

#include <QObject>
#include <QThread>
#include <QMutexLocker>

class KeyboardListenThread : public QThread
{
    Q_OBJECT
public:
    explicit KeyboardListenThread(QObject *parent = NULL);
    ~KeyboardListenThread();

    void stop();

signals:
    void enterPressed();
    void asteriskPressed();
    void escPressed();
    void deletePressed();
    void plusPressed();

protected:
    void run();

private:
    bool isStop;
    QMutex m_lock;

};

#endif // KEYBOARDLISTENTHREAD_H
